// updated: 140106-2137;
#pragma once

class LDlgtype
{
protected:
	CDialog * mlthisdlg;
	unsigned int mldlgid;

	void setLdlgid( unsigned int id ) { mldlgid = id; }
	void setLDialog( CDialog * dlg ) { mlthisdlg = dlg; }
public:
	LDlgtype(void);
	~LDlgtype(void);

	virtual int createDlg( );

	virtual int sync( bool bui );

	virtual void syncShow( bool b );
	void showDlg( bool b );

	bool getCk( uint id);
	void setCk(uint id, int ck);

	void setWt( uint id, CString s);
	void setWtd(uint id, int d);
	void setWtf( uint id, double f, bool isf = true );

	CString getWt(uint id);
	int getWtd( uint id );
	double getWtf( uint id);

	void setCbsel(uint id, int idx);
	int getCbsel( uint id);

	void setEdTxt( uint id, int d);
};

